<?php
/**
 * Created by PhpStorm.
 * Date: 2017/3/31
 * Time: 14:02
 */

namespace App\Http\Controllers\VipChannel\Channel\Transformers;

class ChannelDataInfoTransformer
{
    public function transform($item)
    {
        return [
            'date' => $item->date,
            'phone' => $item->phone,
            'distribution_channel_id' => $item->distribution_channel_id,
            'total_recharge_amount' => $item->total_recharge_amount,
            'pay_success_user_num' => $item->pay_success_user_num,
            'year_recharge_user_num' => $item->year_recharge_user_num,
            'paid_num' => $item->paid_num,
            'register_user_num' => $item->register_user_num,
            'subscribe_user_num' => $item->subscribe_user_num,
            'old_user_subscribe_num' => $item->old_user_subscribe_num,
            'reg_user_first_recharge_amount' => $item->reg_user_first_recharge_amount
        ];
    }
}